<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<script type="text/javascript">
var resizeTimer = null; 
alert(“宽度：”+document.documentElement.clientWidth+
“高度：”+document.documentElement.clientHeight); 

function doResize(){ 
alert(“新宽度：”+document.documentElement.clientWidth+
“新高度：”+document.documentElement.clientHeight); 
resizeTimer = null; 
}
window.onresize = function(){
if( resizeTimer == null) {
resizeTimer = setTimeout("doResize()",1000);
} 
}
</script>
<body>
</body>
</html>
